package com.ruoyi.djb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 版本管理对象 djb_version
 * 
 * @author xxd
 * @date 2023-12-08
 */
public class DjbVersion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /**  */
    @Excel(name = "")
    private Integer versionCode;

    /**  */
    @Excel(name = "")
    private String versionName;

    /**  */
    @Excel(name = "")
    private String updateContent;

    /**  */
    @Excel(name = "")
    private String downloadUrl;

    /** 保留字段（个人/企业） */
    @Excel(name = "保留字段", readConverterExp = "个=人/企业")
    private String type;

    /** 平台（安卓/苹果） */
    @Excel(name = "平台", readConverterExp = "安=卓/苹果")
    private String platform;

    /** 是否强制更新（是/否） */
    @Excel(name = "是否强制更新", readConverterExp = "是=/否")
    private Integer forceUpdate;

    /** 是否显式更新（登录页展示不展示 显式/隐式） */
    @Excel(name = "是否显式更新", readConverterExp = "登=录页展示不展示,显=式/隐式")
    private Integer visible;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setVersionCode(Integer versionCode) 
    {
        this.versionCode = versionCode;
    }

    public Integer getVersionCode() 
    {
        return versionCode;
    }
    public void setVersionName(String versionName) 
    {
        this.versionName = versionName;
    }

    public String getVersionName() 
    {
        return versionName;
    }
    public void setUpdateContent(String updateContent) 
    {
        this.updateContent = updateContent;
    }

    public String getUpdateContent() 
    {
        return updateContent;
    }
    public void setDownloadUrl(String downloadUrl) 
    {
        this.downloadUrl = downloadUrl;
    }

    public String getDownloadUrl() 
    {
        return downloadUrl;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPlatform(String platform) 
    {
        this.platform = platform;
    }

    public String getPlatform() 
    {
        return platform;
    }
    public void setForceUpdate(Integer forceUpdate) 
    {
        this.forceUpdate = forceUpdate;
    }

    public Integer getForceUpdate() 
    {
        return forceUpdate;
    }
    public void setVisible(Integer visible) 
    {
        this.visible = visible;
    }

    public Integer getVisible() 
    {
        return visible;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("versionCode", getVersionCode())
            .append("versionName", getVersionName())
            .append("updateContent", getUpdateContent())
            .append("downloadUrl", getDownloadUrl())
            .append("type", getType())
            .append("platform", getPlatform())
            .append("forceUpdate", getForceUpdate())
            .append("visible", getVisible())
            .toString();
    }
}
